package com.jianneng.jdg.model.homeactivity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;

import com.example.com.jianneng.jdg.R;
import com.jianneng.jdg.model.adapter.MyNewAdapter;
import com.jianneng.jdg.model.gallery.MyNewService;

public class MyNewActivity extends BaseActivity {

	private LinearLayout mBack;
	private ListView mListView;
	private MyNewAdapter mAdapter;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_my_new);
		init();
		mBack.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
				
			}
		});
		mAdapter = new MyNewAdapter(this, MyNewService.getMyNew());
		mListView.setAdapter(mAdapter);
	}
	private void init() {
		mBack = (LinearLayout) findViewById(R.id.mynew_back);
		mListView = (ListView) findViewById(R.id.mynew_listview);
		
	}
	

	
}
